package com.sdstc.modules.eneity;
import com.sdstc.modules.uitl.MyDataHandler;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import java.util.Date;

/**
 * 机构年份详情对象 org_detail_year
 *
 * @author zy
 * @date 2022-11-11
 */
@Builder
@Data
@NoArgsConstructor
@AllArgsConstructor
public class OrgDetailYear extends BaseEntity {
    private static final long serialVersionUID = 1L;

    private String id;
    /** 机构id */
    private String orgId;
    /** 创建时间 */
    @Excel(name = "年份",handler = MyDataHandler.class)
    private Date createTime;
    /** 行政 */
    @Excel(name = "行政")
    private Integer admin;
    /** 单列 */
    @Excel(name = "单列")
    private Integer single;
    /** 工勤 */
    @Excel(name = "工勤")
    private Integer work;
    /** 事业 */
    @Excel(name = "事业")
    private Integer cause;
    /** 行政人数 */
    @Excel(name = "行政人数")
    private Integer adminPerson;
    /** 单列人数 */
    @Excel(name = "单列人数")
    private Integer singlePerson;
    /** 工勤人数 */
    @Excel(name = "工勤人数")
    private Integer workPerson;
    /** 事业人数 */
    @Excel(name = "事业人数")
    private Integer causePerson;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orgId", getOrgId())
            .append("createTime", getCreateTime())
            .append("admin", getAdmin())
            .append("single", getSingle())
            .append("work", getWork())
            .append("cause", getCause())
            .append("adminPerson", getAdminPerson())
            .append("singlePerson", getSinglePerson())
            .append("workPerson", getWorkPerson())
            .append("causePerson", getCausePerson())
        .toString();
    }


}
